<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../js/vue.js"></script>
<script src="../js/axios.js"></script>
<script src="../js/util.js"></script>
<body>
    <div id="app">
        姓名：<input type="text" name="name" v-model="pojo.name"><br>
        年龄：<input type="text" name="age" v-model="pojo.age"><br>
        地址：<input type="text" name="address" v-model="pojo.address"><br>
        <button type="button" @click="submit()">提交</button>
    </div>
<script>
    new Vue({
        el:"#app",
        data:{
            pojo:{}
        },
        created(){},
        methods:{
            submit(){
                axios.post("/order/add",this.pojo).then(
                    res =>{
                        location.href="emp.html"
                    }
                )
            }
        }
    })
</script>
</body>

</html>